﻿<Window x:Class="Bazookabird.Wpf.ShellView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:cal="http://www.caliburnproject.org"
        mc:Ignorable="d" 
        Width="800" Height="600">
    <Window.Resources>
        <ResourceDictionary Source="/Framework/ShellViewTemplates.xaml" />
    </Window.Resources>
    <Window.Style>
        <Style TargetType="{x:Type Window}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding IsChecked, ElementName=HideWindowBorder}" Value="True">
                    <DataTrigger.Setters>
                        <Setter Property="WindowStyle" Value="None" />
                    </DataTrigger.Setters>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </Window.Style>
        <Window.Background>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="Black" Offset="1"/>
			<GradientStop Color="White"/>
			<GradientStop Color="#FFEAEAEA" Offset="0.06"/>
			<GradientStop Color="#FF666666" Offset="0.528"/>
		</LinearGradientBrush>
	</Window.Background>
    <DockPanel>
        <Menu DockPanel.Dock="Top">
            <Menu.Style>
                <Style>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding IsChecked, ElementName=HideWindowBorder}" Value="True">
                            <DataTrigger.Setters>
                                <Setter Property="MenuItem.Height" Value="1" />
                            </DataTrigger.Setters>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </Menu.Style>
            <MenuItem Header="_File">
                <MenuItem Header="_Connect to team project" Name="Connect" />
                <MenuItem Header="_Hide window border" Name="HideWindowBorder" IsCheckable="True"  />
            </MenuItem>
            <MenuItem Header="_Plugins">
                <MenuItem Header="_Build list" Name="OpenBuildList" />
                <MenuItem Header="_Query list" Name="OpenQueryList" />
                <Separator />
                <MenuItem Header="_Close current" Name="CloseCurrentItem" />
            </MenuItem>
        </Menu>
        <StatusBar DockPanel.Dock="Bottom" Background="DarkGray">
            <TextBlock Text="{Binding ProjectStatus}" />           
        </StatusBar>
        <TabControl x:Name="Items" BorderThickness="0" Background="Transparent"  
                    TabStripPlacement="Bottom" Style="{DynamicResource ShellTabControlStyle}">
            <TabControl.Resources>
                <Style TargetType="{x:Type TabItem}">
                    <Setter Property="Template" Value="{DynamicResource ShellTabItemControlTemplate}" />
                </Style>
            </TabControl.Resources>
            <TabControl.ItemTemplate>
                <DataTemplate>
                    <Grid ToolTip="{Binding DisplayName}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
                </DataTemplate>
            </TabControl.ItemTemplate>
        </TabControl>
    </DockPanel>
</Window>
